<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="template.xhtml">
	<ui:define name="content">
	
	<f:metadata>  
	    <f:viewParam name="elementId" value="#{excursionBean.excursionId}"/>  
	    <f:viewParam name="packageId" value="#{excursionBean.packageId}"/>
	</f:metadata> 
	<br />
	<p:fieldset legend="#{excursionBean.excursion.name}" >
	
	<h:panelGrid columns="2" cellpadding="10"> 
   			<p:graphicImage width="300px" value="../images/excursions/#{excursionBean.excursionId}.jpg" /> 
		    <h:panelGrid columns="1">
       			<h:outputText value="#{excursionBean.excursion.description}" /><br/><br />
       			<h:outputText value="Prezzo: #{excursionBean.excursion.price} euro a persona" />
   			</h:panelGrid>  
    </h:panelGrid>
    <p:button outcome="packageDetails" value="Torna al pacchetto">
    <f:param name="packageId" value="#{excursionBean.packageId}"/>
    </p:button>
    </p:fieldset>
  	
	</ui:define>
</ui:composition>
</html>